package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.estore.info.ProfileInfo;

public class ForgetPwdMapper implements RowMapper<ProfileInfo> {

	@Override
	public ProfileInfo mapRow(ResultSet rs, int arg1) throws SQLException {
		ProfileInfo info = new ProfileInfo();
		info.setUserID(rs.getInt("userid"));
		info.setAccount(rs.getString("account"));
		info.setPassword(rs.getString("pwd"));
		info.setSecretAnswer(rs.getString("secretanswer"));
		info.setSecretQuestion(rs.getString("secretquestion"));
		info.setEmail(rs.getString("email"));
		return null;
	}

}
